Force the devid given to destroyDevice to an integer. This means that that
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 15:43:52 +0000 (16:43 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 15:43:52 +0000 (16:43 +0100)
method copes with the values given to xm network-detach without netif.py having
to intervene.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/DevController.py

index 0060a687fd0d3791cefd26d99965eea068ef22e7..8cbab6f9c27532124f143d84a67549edd191ef1e 100644 (file)
@@ -74,6 +74,8 @@ class DevController:
         other tasks on destruction.
         """
 
+        devid = int(devid)
+        
         frontpath = self.frontendPath(devid)
         backpath = xstransact.Read(frontpath, "backend")